﻿#include "CmdPolarCoordinateGraphSidebarCurveNameClicked.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdPolarCoordinateGraphSidebarCurveNameClicked::CmdPolarCoordinateGraphSidebarCurveNameClicked()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdPolarCoordinateGraphSidebarCurveNameClicked::~CmdPolarCoordinateGraphSidebarCurveNameClicked()
    {
    }

    bool CmdPolarCoordinateGraphSidebarCurveNameClicked::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_polarCoordinateGraphSidebarCurveNameClicked(m_mainWindowId, m_allSelectedItem);
        return true;
    }

    void CmdPolarCoordinateGraphSidebarCurveNameClicked::undo()
    {
    }

    void CmdPolarCoordinateGraphSidebarCurveNameClicked::redo()
    {
        // execute();
    }

    void CmdPolarCoordinateGraphSidebarCurveNameClicked::setPolarCoordinateGraphSidebarCurveNameClicked(int mainWindowId, QList<int> allSelectedItemIndexList)
    {
        m_mainWindowId = mainWindowId;
        m_allSelectedItem = allSelectedItemIndexList;
    }

} // namespace PostCommand
